package org.csu.equipment.service;

import org.csu.equipment.entity.*;
import org.csu.equipment.vo.Index2VO;
import org.csu.equipment.vo.UsingQuantity;
import org.springframework.stereotype.Service;

import java.sql.Timestamp;
import java.util.List;


public interface AdminService {

    Integer login(String AId , String APwd);
    List<Client> getClientList();
    List<Employee> getEmployeeList();
    List<Task> getTaskList();
    List<Warehouse> getWareHouseList();
    int Tasknumber(String EId);
    void log(String AId,String log);
    void in(String type,int quantity);
    void updateCinfo(Client client);
    void updateEinfo(Employee employee);
    void deleteCinfo(String CId);
    void deleteEinfo(String EId);
    void insertCinfo(Client client,ClientLogin clientLogin);
    void insertEinfo(Employee employee,EmployeeLogin employeeLogin ,EmployeeSkill employeeSkill);
    List<Record> requestedtask();
    List<UsingQuantity> getUsingQuantity();
    boolean updateRecordAndTask(String RId);
    void cancelTask(String TId);
    List<Employee> employeeRank();
    Index2VO getIndex2VO();;
    List<AdminLog> getLogInTime(String AId, Timestamp startTime,Timestamp endTime);
    Client getAClient(String CId);
    Employee getAEmployee(String EId);
}
